package com.xingkeduo.pojo.table;

import org.apache.ibatis.type.Alias;

import com.xingkeduo.util.pojo.base.BaseTable;
import com.xingkeduo.util.pojo.enums.LeavingTypeEnum;

import java.util.Date;

/**
 * 一线员工离职属性类
 * 
 * @author 高杰
 * @time 2019年3月13日 下午2:29:11
 * @description
 */
@Alias("CraftsmanLeaving")
public class CraftsmanLeavingTO extends BaseTable<CraftsmanLeavingTO> {
	private LeavingTypeEnum type;
	private String reason;
	private String remark;
	private long craftsmanId;
	private Date salaryDate;

	public Date getSalaryDate() {
		return salaryDate;
	}

	public CraftsmanLeavingTO setSalaryDate(Date salaryDate) {
		this.salaryDate = salaryDate;
		return this;
	}

	public LeavingTypeEnum getType() {
		return type;
	}

	public CraftsmanLeavingTO setType(LeavingTypeEnum type) {
		this.type = type;
		return this;
	}

	public String getReason() {
		return reason;
	}

	public CraftsmanLeavingTO setReason(String reason) {
		this.reason = reason;
		return this;
	}

	public String getRemark() {
		return remark;
	}

	public CraftsmanLeavingTO setRemark(String remark) {
		this.remark = remark;
		return this;
	}

	public long getCraftsmanId() {
		return craftsmanId;
	}

	public CraftsmanLeavingTO setCraftsmanId(long craftsmanId) {
		this.craftsmanId = craftsmanId;
		return this;
	}

	@Override
	public String toString() {
		return "CraftsmanLeavingTO{" +
				"type=" + type +
				", reason='" + reason + '\'' +
				", remark='" + remark + '\'' +
				", craftsmanId=" + craftsmanId +
				", salaryDate=" + salaryDate +
				'}';
	}
}
